package com.neusoft.feign;

import com.neusoft.core.CommonResult;
import com.neusoft.core.PointLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name="point-server",
        url="http://localhost:10800",  // 添加直接URL
        fallback = PointFeignClientCallBack.class)
public interface PointFeighClient {

    @PostMapping("/PointController/insertLog")
    public CommonResult<Integer> addPointLog(@RequestBody PointLog pointLog);
}
